package com.cblz.bd.server.frontend.entity;

import com.cblz.bd.common.core.entity.system.Tree;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * {@code @Name:} BaUserRuleTree
 * {@code @Description: }
 * {@code @Author:} by yanjieping
 * {@code @CreateDate:} 2023/2/24 - 周五
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString
public class BaUserRuleTree extends Tree<BaUserRule> {

    private Integer id;
    /**
     * 上级菜单
     */
    private Integer pid;
    /**
     * 类型:route=路由,menu_dir=菜单目录,menu=菜单项
     */
    private String type;
    /**
     * 标题
     */
    private String title;
    /**
     * 规则名称
     */
    private String name;
    /**
     * 路由路径
     */
    private String path;
    /**
     * 图标
     */
    private String icon;
    /**
     * 菜单类型:tab=选项卡,link=链接,iframe=Iframe
     */
    private String menuType;
    /**
     * Url
     */
    private String url;
    /**
     * 组件路径
     */
    private String component;
    /**
     * 扩展属性:none=无,add_rules_only=只添加为路由,add_menu_only=只添加为菜单
     */
    private String extend;
    /**
     * 备注
     */
    private String remark;
    /**
     * 权重(排序)
     */
    private Integer weigh;
    /**
     * 状态:0=禁用,1=启用
     */
    private Integer status;
    /**
     * 更新时间
     */
    private Long updatetime;
    /**
     * 创建时间
     */
    private Long createtime;
}
